﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("输入数");
            int aa =int.Parse( Console.ReadLine());
            Console.WriteLine("输入数");
            int bb = int.Parse(Console.ReadLine());
            Console.WriteLine("选择你的计算方法");
            string cc = Console.ReadLine();
            if (cc=="+")
            {
                jiafa jiafa = new jiafa();
                jiafa.Num = aa;
                jiafa.Num2 = bb;
                jiafa.jisuan();
            }
            else if (cc=="-")
            {
                jianfa jianfa = new jianfa();
                jianfa.Num = aa;
                jianfa.Num2 = bb;
                jianfa.jisuan();
            }
            else if (cc == "*")
            {
                chengfa chengfa = new chengfa();
                chengfa.Num = aa;
                chengfa.Num2 = bb;
                chengfa.jisuan();
            }
            else if (cc == "/")
            {
                chufa chufa = new chufa();
                chufa.Num = aa;
                chufa.Num2 = bb;
                chufa.jisuan();
            }

        }
    }
}
